package com.entity;

import lombok.Data;

import jakarta.persistence.*;

@Data
@Entity
@Table(name = "SALARY_GRADE")
public class SalaryGrade {

    @Id
    @Column(name = "GRADE")
    private Integer grade;

    @Column(name = "LOW_SALARY", nullable = false)
    private Float lowSalary;

    @Column(name = "HIGH_SALARY", nullable = false)
    private Float highSalary;

    public SalaryGrade() {

    }

    public SalaryGrade(Integer grade, Float lowSalary, Float highSalary) {
        this.grade = grade;
        this.lowSalary = lowSalary;
        this.highSalary = highSalary;
    }

}
